package com.yunxi.poc.starbucks.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.yunxi.poc.starbucks.entity.Order;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author shiyuan.xlc
 * @since 2021-08-12
 */
public interface OrderMapper extends BaseMapper<Order> {

    @Select("select distinct store_id from t_order ${ew.customSqlSegment}")
    List<String> ids(@Param(Constants.WRAPPER) Wrapper wrapper);

}
